package com.lwd.spring.study.core.BeanFactoryPostProcessor;

import com.lwd.spring.study.bean.Address;
import lombok.Data;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.BeanDefinitionVisitor;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.stereotype.Component;
import org.springframework.util.StringValueResolver;

import java.util.Set;

/**
 * @Author: 刘东（挂兰）
 * @Date: 2023/12/13 20:45:34
 * @Description:
 */
@Data
@Component("simpleBean")
public class SimplePO {

    @Value("${lwd.connectionString}")
    private String connectionString;

    @Value("${lwd.password}")
    private String password;

    @Value("${lwd.username}")
    private String userName;

//    @Autowired
    private Address address;

    public String getConnectionString() {
        return connectionString;
    }

    public void setConnectionString(String connectionString) {
        this.connectionString = connectionString;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}



